<template>
	<view class="my-container" :class="skinStyle">
		<view class="selectService aaa" @tap="goReturnDetail(1)" v-if="selectFlag">
			<view class="selectImg"><image src="../../../static/img/refund.png" class="tui-avatar"></image></view>
			<view class="selectWord">
				<view class="selectTitleWord"><text>我要退货退款</text></view>
			</view>
			<view class="selectWord">
				<view class="selectContentWord"><text>已收到货，需要退还已收到的货物</text></view>
			</view>
		</view>
		<view class="selectService aaa" @tap="goReturnDetail(3)" v-if="selectFlag">
			<view class="selectImg"><image src="../../../static/img/refund.png" class="tui-avatar"></image></view>
			<view class="selectWord">
				<view class="selectTitleWord"><text>我要换货</text></view>
			</view>
			<view class="selectWord">
				<view class="selectContentWord"><text>已收到货，需要退还已收到的货物</text></view>
			</view>
		</view>
		<view class="selectService aaa" @tap="goReturnDetail(2)" v-if="!selectFlag">
			<view class="selectImg"><image src="../../../static/img/refund.png" class="tui-avatar"></image></view>
			<view class="selectWord">
				<view class="selectTitleWord"><text>我要退款(无需退货)</text></view>
			</view>
			<view class="selectWord">
				<view class="selectContentWord"><text>未收到货，或与商家协商之后申请</text></view>
			</view>
		</view>
		<tui-modal></tui-modal>
	</view>
</template>

<script>
import footBar from '@/components/footbar/footbar';
import tuiListCell from '@/components/list-cell/list-cell';
import tuiButton from '@/components/button/button';
import mixin from '@/utils/mixin.js';
export default {
	mixins: [mixin],
	components: {
		footBar,
		tuiListCell,
		tuiButton
	},
	onLoad(options) {
		// #ifdef H5
		   this.$wechat.noShare();
		// #endif
		this.selectFlag = this.getStatus(options.status)
		console.log(this.selectFlag);
	},
	onShow() {
		// this.orderCount()
	},
	data() {
		return {
			item:'',
			itemStr:'',
			selectFlag:false
		};
	},
	methods: {
		goReturnDetail(type) {
			uni.setStorageSync('imgArr', []);
			uni.redirectTo({
				url: '../orderReturn/returnDetail?item=creat&type='+type+'&listFlag=0'
			});
		},
		getStatus(id){
			if(id==10){
				return false;
			}else{
				return true;
			}
		},
	}
};
</script>

<style lang="scss">
.aaa {
	background-color: #FFFFFF;
}
.selectService {
	width: 100%;
	height: 360rpx;
}
.kfbutton {
	font-size: 22rpx;
	display: flex;
	flex-direction: column;
	align-items: center;
	position: fixed;
	justify-content: space-between;
	bottom: calc(constant(safe-area-inset-bottom) + 98rpx); // ios底部安全距离-bottom
	bottom: calc(env(safe-area-inset-bottom) + 98rpx);
	right: 10rpx;
	background: transparent;
	z-index: 99999;

	.iconfont {
		width: 100rpx;
		height: 100rpx;
		font-size: 100rpx;
		margin-bottom: 70rpx;
		// color: #7A7A7A;
	}
}

.kf_button::after {
	border: 0px;
}


.tui-icon-box {
	position: relative;
}

.tui-badge-white {
	background: #fff;
	color: #f74d54;
}

.tui-badge-dot {
	position: absolute;
	height: 12rpx;
	width: 12rpx;
	border-radius: 50%;
	right: -12rpx;
	top: 0;
	background: #f74d54;
}

.selectImg {
	width: 100%;
	height: 128rpx;
	margin-top: 10rpx;
	padding: 20rpx 30rpx;
	box-sizing: border-box;
	display: flex;
	// align-items: center;
	justify-content: center;
}

.selectWord {
	width: 100%;
	color: #333;
	box-sizing: border-box;
	display: flex;
	margin-top: 30rpx;
	justify-content: center;
}
.tui-charm {
	width: 100%;
	padding-top: 60rpx;
	padding-left: 40rpx;
	color: #333;
	box-sizing: border-box;
}

.selectTitleWord {
	font-size: 35rpx;
	font-weight: 550;
	height: 50rpx;
	// display: flex;
	// align-items: center;
	// margin-bottom: 6rpx;
}

.selectContentWord {
	font-size: 24rpx;
	font-weight: 500;
	height: 50rpx;
	// display: flex;
	// align-items: center;
	// margin-bottom: 6rpx;
}

.tui-explain,
.telButton {
	font-size: 26rpx;
	color: #333;
	opacity: 0.9;
}

.telButton {
	border: none;
	background: transparent;
	text-align: left;
	padding-left: 0;
	height: 50rpx;
}

.tui-btn-edit {
	flex-shrink: 0;
	font-size: 36rpx;
	// padding-right: 22rpx;
	position: absolute;
	top: 20rpx;
	right: 40rpx;
}

.tui-order-box {
	height: 350rpx;
}

.tui-cell-header {
	width: 100%;
	height: 80rpx;
	padding: 0 26rpx;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tui-cell-title {
	font-size: 30rpx;
	line-height: 30rpx;
	font-weight: 600;
	color: #333;
	flex: 1;
}

.tui-cell-sub {
	font-size: 26rpx;
	font-weight: 400;
	color: #999;
	padding-right: 28rpx;
}

.tui-order-list {
	width: 100%;
	height: 130rpx;
	padding: 0 10rpx;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.tui-order-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.tui-order-text,
.tui-tool-text {
	font-size: 26rpx;
	font-weight: 400;
	color: #666;
	padding-top: 4rpx;
}

.tui-tool-text {
	font-size: 24rpx;
}

.tui-order-icon {
	width: 52rpx;
	height: 52rpx;
	font-size: 42rpx;
	display: block;
}

.tui-assets-box {
	height: 84rpx;
	margin-top: 16rpx;
}

.change-skin-box {
	margin-top: 16rpx;
	margin-bottom: 120rpx;

	.tui-cell-header {
		border-bottom: 2rpx solid $borderColor;
	}

	.skin-down-arrow {
		transform: rotate(90deg);
		transition: 0.3s;
	}
}

.skin-wrap {
	width: 100%;
	padding-top: 16rpx;
	box-sizing: border-box;
	background: #fff;

	.skin-inner {
		padding: 0 16rpx;
		box-sizing: border-box;
		height: 230rpx;

		.skin-item-wrap {
			.skin-item {
				width: 380rpx;
				height: 30rpx;
				//height:140rpx;
				display: block;
				border-radius: 8rpx 8rpx 0 0;
				margin: 0 auto;

				// border-radius:8rpx;
				// display: flex;
				// align-items: center;
				// justify-content:space-around;
				// color:#fff;
				// view{
				// 	display: inline-block;
				// 	width:50rpx;
				// 	height: 50rpx;
				// 	text-align: center;
				// 	font-size:40rpx;
				// }
			}

			.skin-item-icon {
				width: 380rpx;
				height: 110rpx;
				display: block;
				border-radius: 0 0 8rpx 8rpx;
				margin: 0 auto 6rpx auto;
				display: flex;
				align-items: center;
				justify-content: space-around;

				view {
					display: inline-block;
					width: 50rpx;
					height: 50rpx;
					text-align: center;
					font-size: 40rpx;
				}
			}

			.skin-text {
				font-size: 26rpx;
				text-align: center;
				line-height: 44rpx;
			}
		}
	}
}

.tui-coupon-box {
	margin-top: 16rpx;
}

.tui-banner-scale {
	transform: scaleY(0.8);
	transform-origin: center center;
}

/* #ifdef APP-PLUS || MP */
.tui-banner-swiper .wx-swiper-dot {
	width: 10rpx;
	height: 10rpx;
	display: inline-flex;
	background: none;
	justify-content: space-between;
}

.tui-banner-swiper .wx-swiper-dot::before {
	content: '';
	flex-grow: 1;
	background: rgba(183, 183, 183, 0.8);
	border-radius: 16rpx;
	overflow: hidden;
}

.tui-banner-swiper .wx-swiper-dot.wx-swiper-dot-active {
	width: 20rpx;
}

/* #endif */

/* #ifdef H5 */
>>> .tui-banner-swiper .uni-swiper-dot {
	width: 10rpx;
	height: 10rpx;
	display: inline-flex;
	background: none;
	justify-content: space-between;
}

>>> .tui-banner-swiper .uni-swiper-dot::before {
	content: '';
	flex-grow: 1;
	background: rgba(183, 183, 183, 0.8);
	border-radius: 16rpx;
	overflow: hidden;
}

>>> .tui-banner-swiper .uni-swiper-dot.uni-swiper-dot-active {
	width: 20rpx;
}

/* #endif */
</style>
